/*
 * Decompiled with CFR 0.150.
 * 
 * Could not load the following classes:
 *  cn.hutool.core.util.StrUtil
 */
package com.gys.data.enumclass;

import cn.hutool.core.util.StrUtil;

public enum RechargeType {
    NORMAL("1", "\u666e\u901a\u5145\u503c"),
    PROMOTION("2", "\u6d3b\u52a8\u5145\u503c");

    private String id;
    private String name;

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private RechargeType(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public static RechargeType getById(String id) {
        for (RechargeType value : RechargeType.values()) {
            if (!StrUtil.equals((CharSequence)id, (CharSequence)value.getId())) continue;
            return value;
        }
        return null;
    }

    public String toString() {
        return this.name;
    }
}

